package com.zzq.controller;

import com.zzq.domain.search.ClientSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientAdminService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/admin/client")
@Api(value = "客户管理",tags = {"客户管理"})
@Slf4j
public class ClientAdminController {
    @Autowired
    ClientAdminService clientAdminService;

    @RequestMapping("/list")
    public SmileResult list(@RequestBody ClientSearchParamet clientSearchParamet){
        log.info("获取客户端数据{}",new Date());
        return clientAdminService.getSmileClientDTOList(clientSearchParamet);
    }
}
